package com.sd.domain;

import java.util.Date;

/**
 * 校董助手实体类
 * @author yexinming
 */
public class Assistant {
    /**
     *助理姓名
     */
    private String userName;
    /**
     *助理手机号
     */
    private String phone;
    /**
     *校董id
     */
    private Long parentId;
    /**
     *校董电话
     */
    private String parentPhone;
    /**
     *校董名称
     */
    private String parentName;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 是否有效1有效0无效
     */
    private Integer isValid;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     *更新时间
     */
    private Date updateTime;
    /**
     * 对接id
     */
    private String partnerid;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentPhone() {
        return parentPhone;
    }

    public void setParentPhone(String parentPhone) {
        this.parentPhone = parentPhone;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getPartnerid() {
        return partnerid;
    }

    public void setPartnerid(String partnerid) {
        this.partnerid = partnerid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Assistant assistant = (Assistant) o;

        if (userName != null ? !userName.equals(assistant.userName) : assistant.userName != null) return false;
        if (phone != null ? !phone.equals(assistant.phone) : assistant.phone != null) return false;
        if (parentId != null ? !parentId.equals(assistant.parentId) : assistant.parentId != null) return false;
        if (parentPhone != null ? !parentPhone.equals(assistant.parentPhone) : assistant.parentPhone != null)
            return false;
        if (parentName != null ? !parentName.equals(assistant.parentName) : assistant.parentName != null) return false;
        if (nickName != null ? !nickName.equals(assistant.nickName) : assistant.nickName != null) return false;
        if (isValid != null ? !isValid.equals(assistant.isValid) : assistant.isValid != null) return false;
        if (remark != null ? !remark.equals(assistant.remark) : assistant.remark != null) return false;
        if (createTime != null ? !createTime.equals(assistant.createTime) : assistant.createTime != null) return false;
        if (updateTime != null ? !updateTime.equals(assistant.updateTime) : assistant.updateTime != null) return false;
        return partnerid != null ? partnerid.equals(assistant.partnerid) : assistant.partnerid == null;
    }

    @Override
    public int hashCode() {
        int result = userName != null ? userName.hashCode() : 0;
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (parentId != null ? parentId.hashCode() : 0);
        result = 31 * result + (parentPhone != null ? parentPhone.hashCode() : 0);
        result = 31 * result + (parentName != null ? parentName.hashCode() : 0);
        result = 31 * result + (nickName != null ? nickName.hashCode() : 0);
        result = 31 * result + (isValid != null ? isValid.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (partnerid != null ? partnerid.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Assistant{" +
                "userName='" + userName + '\'' +
                ", phone='" + phone + '\'' +
                ", parentId=" + parentId +
                ", parentPhone='" + parentPhone + '\'' +
                ", parentName='" + parentName + '\'' +
                ", nickName='" + nickName + '\'' +
                ", isValid=" + isValid +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", partnerid='" + partnerid + '\'' +
                '}';
    }
}
